package Day36.equals;

import java.util.HashMap;
import java.util.Map;

public class Test2 {
    public static void main(String[] args) {
        Map<User,String> userMap = new HashMap<>();
        User user = new User(1,"admin");
        //System.out.println(user.hashCode());
        User user1 = new User(1,"admin");
        //System.out.println(user1.hashCode());
//        User user2 = new User(1,"admin");
        userMap.put(user,"user");
        userMap.put(user1,"user1");
//
//        userMap.put(user2,"user2");
        System.out.println(userMap);

    }
}
